/// 用户
class UserPrint {
  final String id;
  final String account;
  final String password;
  final String username;
  final DateTime birthDate;
  final String signature;
  final String avatar;

  UserPrint({
    required this.id,
    required this.account,
    required this.password,
    required this.username,
    required this.birthDate,
    required this.signature,
    required this.avatar,
  });

  /// 复制并修改用户
  UserPrint copyWith({
    String? id,
    String? account,
    String? password,
    String? username,
    DateTime? birthDate,
    String? signature,
    String? avatar,
  }) {
    return UserPrint(
      id: id ?? this.id,
      account: account ?? this.account,
      password: password ?? this.password,
      username: username ?? this.username,
      birthDate: birthDate ?? this.birthDate,
      signature: signature ?? this.signature,
      avatar: avatar ?? this.avatar,
    );
  }
}
